# 最基础的装饰器
# 学习地址，https://www.bilibili.com/video/BV1kPPUeuEYG?spm_id_from=333.788.videopod.episodes&vd_source=ffde1e6c5946d5428a8146c8880b2bc9&p=5
def decorator(func):
    def inner():
        print("before")
        nei = func()  # 调用原来的函数
        print("after")
        return nei

    return inner


def func():
    value = (11, 22, 33, 44)
    print("Hello World{}".format(value))
    return value


# aa = func()
# print(aa)
func = decorator(func)
result = func()
print(result)
